package me.sdevil507.org.po;

import lombok.Data;
import me.sdevil507.supports.jpa.BaseJpaSnowflakeIdAndAuditEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @program: tips_back_end
 * @description: 临时专家库
 * @author: kzl
 * @create: 2020-08-05 14:38
 **/
@Entity
@Table(name = "biz_temp_expert")
@Data
public class TempExpertPo extends BaseJpaSnowflakeIdAndAuditEntity {
    /**
     * 手机号码
     */
    @Column
    private String phoneNumber;

    /**
     * 密码
     */
    @Column(length = 40)
    private String password;

    /**
     * 真实姓名
     */
    @Column
    private String realName;

    /**
     * 个人头像
     */
    @Column
    private String profilePhoto;

    /**
     * 邮箱
     */
    @Column
    private String mail;

    /**
     * 身份证号码
     */
    @Column
    private String idNum;

    /**
     * 工号
     */
    @Column
    private String workNum;

    /**
     * 是否被锁定
     */
    @Column(nullable = false)
    private Boolean locked = false;

    /**
     * 最后登录时间
     */
    @Column
    private Date lastLoginTime;

    /**
     * 密码修改时间
     */
    @Column
    private Date passwordUpdateTime = new Date();

    /**
     * 逻辑删除标记
     */
    @Column(nullable = false)
    private Boolean deleted = false;

    /**
     * 是否邀请 0 未邀请  1 已邀请
     */
    @Column
    private String invited ="0";

    /**
     * 组织id
     */
    @Column
    private Long orgID;

    /**
     * 专家id
     */
    @Column
    private Long orgUserId;

    /**
     * 审核结果 0 待验证 1验证通过  */
    @Column
    private String checked  ="0";
}
